let t = document.querySelector('.top')
let title = document.querySelector('.title')
let content = document.querySelector('.content')
let bg = document.querySelectorAll('.bg')
let b = document.querySelector('.bottom')


setTimeout(() => {
    getData();
},3000)
function getData() {
    let img = document.createElement('img')
    img.src =
        "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic1.win4000.com%2Fwallpaper%2F3%2F59914c437c099.jpg%3Fdown&refer=http%3A%2F%2Fpic1.win4000.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1666676179&t=09be1752a5b3e168545127f0a967b214";
    img.style.width = '399px';
    img.style.height = "144px";
    title.innerHTML = '标题'
    content.innerHTML = '内容xxxxxxxxxxxx'
    t.appendChild(img)
    t.style.border = "none";
    b.style.border = "none";
    bg.forEach(item => {
       item.classList.remove('bg')
   })
}